import VueRouter from 'vue-router'
import Home from '../pages/Home'
import About from '../pages/About'
import Login from '../pages/Login'
import Register from '../pages/Register'
import Shop from '../pages/Shop'
import Add from '../pages/Add'
import Orders from '../pages/Orders'
import OrdersAdd from '../pages/OrdersAdd'
const router = new VueRouter({
    routes:[
        {
            path:'/home',
            component:Home,
        },
        {
            path:'/about',
            component:About,
        },
        {
            path:'/login',
            component:Login,
        },{
            path:'/register',
            component:Register,
        },
        {
            path:'/shop',
            component:Shop,
        },
        {
            path:'/add',
            component:Add,
        },
        {
            path:'/orders',
            name:'orders',
            component:Orders,
        },
        {
            path:'/ordersAdd',
            component:OrdersAdd,
        },

    ]
})
export default router